package com.deyuanyun.pic.pipe.controller.vo;

import org.springframework.validation.Errors;

import java.io.Serializable;

/**
 * Created by linwei on 6/17/2016.
 */
public interface Command<T> extends Serializable {

    T toDomain(Errors errors);

    T toDomain();

    void fromDomain(T domain);
}